//: Playground - noun: a place where people can play

import UIKit


// int float string

var str = "Hello, playground"

var index = 0

index = 0

var x = 0 ,y = 0, z = 0


var websiteName:String
websiteName = "www.baidu.com"

let decimalInt:Int = 17
let binaryInt:Int = 0b10001
let octalInt:Int = 0o21
let hexadecimalInt = 0x11

let float_a = 0.012
let float_b = 1.2e-2

let bignum_a = 1000000
let bignum_b = 1_000_000
let bignum_c = 1_0000_0000


let num_a:Float = 1
let num_b:Int = Int( 1.2)

let a:Int = 3;
let b:Double = 0.1415926
let pi:Double = Double(a)+b


//bool

let imtrueVar = true
let imfalseVar = false

if (imfalseVar){
    print("i'm true")
}
else if 3+4==7 {
    print("3+4=7")
}

else{
    print("i'm false")
}

var aa:Int = 1

if aa == 1{
    print("aa is int")
}

// 元组

let registrationResult = (isRegisterSuccess:true,nickname:"fuck me", gender:"fuck me")

registrationResult.2
registrationResult.gender


let (val1,val2,val3) = registrationResult;
val3

//
//let loginResult(Bool,String) = (true,"fuck me!!!!")
//let (isSuccess, _ ) = loginResult
//if isSuccess{
//    print(loginResult.1)
//}

